#2020年国赛-程序设计题 天干地支
N=int(input())
a=['jia','yi','bing','ding','wu','ji','geng','xin','ren','gui']
b=['zi','chou','yin','mao','chen','si','wu','wei','shen','you','xu','hai']
#第一个甲子年是4
c=N-4
a1=c%10
b2=c%12
print(a[a1]+b[b2])
